<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<button onclick="goBside()">click</button>
<script>
  // a->b->a session还在 只要不关闭页面就可以访问到session
  function goBside() {
    let a = document.createElement('a')
    a.href='http://localhost:3000/b.html'
    // 将a标签添加到body中
    document.body.append(a)
    // 点击a标签
    a.click()
    // 删除a标签
    document.removeChild(a)
  }
</script>
</body>
</html>
